﻿using System;

namespace block_explorer
{
    class PerformanceTimer
    {
        private long mStartTime;

        public PerformanceTimer()
        {
            Restart();
        }

        public void Restart()
        {
            mStartTime = DateTime.Now.Ticks;
        }

        public float Time { get { return (float)((DateTime.Now.Ticks - mStartTime) / 10000.0); } }
    }
}
